//
//  SearchCell.m
//  BeanTrip
//
//  Created by dlios on 15-7-13.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "SearchCell.h"
#define WIDTH ([UIScreen mainScreen].bounds.size.width/375)
#define HEIGH ([UIScreen mainScreen].bounds.size.height/667)



@implementation SearchCell
- (void)dealloc
{
    [_myImageV release];
    [_label1 release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self getNewView];
    }
    return self;
}
- (void)getNewView
{
    self.myImageV = [[UIImageView alloc] init];
    [self addSubview:self.myImageV];
    self.imageView.layer.cornerRadius = 8;
    //self.myImageV.backgroundColor = [UIColor redColor];
    
    self.label1 = [[UILabel alloc] init];
    [self addSubview:self.label1];
    self.label1.font = [UIFont systemFontOfSize:15 * HEIGH];
    //self.label1.backgroundColor = [UIColor grayColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(335 * WIDTH, 30 * HEIGH, 30 * WIDTH, 30 * HEIGH)];
    [self addSubview:label];
    label.text = @">";



}
- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImageV.frame = CGRectMake(5, 5, 110 * WIDTH, 80 * HEIGH);
    self.label1.frame = CGRectMake(130 * WIDTH, 30 * HEIGH, 200 * WIDTH, 30 * HEIGH);
    

}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
